<%--
  Created by IntelliJ IDEA.
  User: 祥龙
  Date: 2020/2/11
  Time: 21:50
  To change this template use File | Settings | File Templates.
--%>
<script src="js/jquery-3.3.1.min.js"></script>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <script>
        function fun(){
            $.post("transMoney",{},function (data) {
                alert(data)
            })
        }
    </script>
</head>
<body>
<a href="${pageContext.request.contextPath}/findAccount">查询所有</a>
<form action="${pageContext.request.contextPath}/transMoney" method="post">
    <input type="text" name="forName"><br>
    <input type="text" name="toName"><br>
    <input type="text" name="money"><br>
    <input type="submit" value="转账">
</form>
<form>
   <input type="text" name="foName" id="forName"><br>
    <input type="text" name="toName" id="toName"><br>
    <input type="text" name="money" id="money"><br>
     <input type="submit" value="发送异步请求" onsubmit="fun()">
</form>
</body>
</html>
